﻿using AutoMapper;
using HamcoWcs.Entitys.PathInfos;
using HamcoWcs.Models.ForeEndModels.UIPaths;

namespace HamcoWcs.Models.PathInfos
{
    public class PathInfoProfile : Profile
    {
        public PathInfoProfile()
        {
            CreateMap<PathInfo, PathInfoDto>()
                .ForMember(o => o.UsedPath, des => des.MapFrom(src => src.DefaultPath));
            CreateMap<PathInfoDto, PathInfo>();
            CreateMap<PathInfo, UIPathInfo>();
        }
    }
}
